package bjfuwjx.exp4;

import java.awt.geom.Ellipse2D;
public class ShootingBall {
    public Double x;
    public Double y;
    public Double speed;
    public Double radius;
    public ShootingBall(Double[] position) {
        this.x=position[0];
        this.y=position[1];
        this.speed=10.0;
        this.radius=20.0;
    }
    public void move() {
        y-=speed;
    }
    public Ellipse2D shape() {
        return new Ellipse2D.Double(x,y,radius,radius);
    }
}
